/**
 * jims
 */
package com.jims.master.modules.csm.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * 药品名称字典Entity
 * @author 朱齐
 * @version 2017-03-01
 */
public class ExpNameDict extends DataEntity<ExpNameDict> {

    private static final long serialVersionUID = 1L;
    private String expCode;		// 药品代码
    private String expName;		// 药品名称
    private String inputCode;		// 输入码
    private String expType;        //类别
    private String expFrom;        //剂型
    private String expIndicator;   //药品类型：中药、西药、中成药
    private String expStyle;        //产品类别
    private ExpClassDict expClassDict; //药品类型

    public ExpClassDict getExpClassDict() {
        return expClassDict;
    }

    public void setExpClassDict(ExpClassDict expClassDict) {
        this.expClassDict = expClassDict;
    }

    public ExpNameDict() {
        super();
    }

    public ExpNameDict(String id){
        super(id);
    }

    public String getExpStyle() {
        return expStyle;
    }

    public void setExpStyle(String expStyle) {
        this.expStyle = expStyle;
    }

    @Length(min=1, max=20, message="药品代码长度必须介于 1 和 20 之间")
    public String getExpCode() {
        return expCode;
    }

    public void setExpCode(String expCode) {
        this.expCode = expCode;
    }

    @Length(min=1, max=100, message="药品名称长度必须介于 1 和 100 之间")
    public String getExpName() {
        return expName;
    }

    public void setExpName(String expName) {
        this.expName = expName;
    }

    @Length(min=0, max=50, message="输入码长度必须介于 0 和 50 之间")
    public String getInputCode() {
        return inputCode;
    }

    public void setInputCode(String inputCode) {
        this.inputCode = inputCode;
    }

    public String getExpType() {
        return expType;
    }

    public void setExpType(String expType) {
        this.expType = expType;
    }

    @Length(min=1, max=2, message="剂型长度必须介于 1 和 2 之间")
    public String getExpFrom() {
        return expFrom;
    }

    public void setExpFrom(String expFrom) {
        this.expFrom = expFrom;
    }

    @Length(min=1, max=2, message="药品类别标志[1西药，2中草药，3中成药，5辅料，6耗材，8材料，9其他]长度必须介于 1 和 2 之间")
    public String getExpIndicator() {
        return expIndicator;
    }

    public void setExpIndicator(String expIndicator) {
        this.expIndicator = expIndicator;
    }
}